import request from '@/utils/request';
export async function query(params) {
  return request('/api/v1/admin/user/list', {
    method: 'POST',
    data: params,
  });
}
export async function queryCurrent() {
  return request('/api/v1/admin/user/current');
}

export async function queryNotices() {
  return request('/api/v1/notices');
}

export async function create(params) {
  return request('/api/v1/admin/user/create', {
    method: 'POST',
    data: params,
  });
}

export async function update(params) {
  return request('/api/v1/admin/user/update', {
    method: 'POST',
    data: params,
  });
}

export async function deleteOne(params) {
  return request('/api/v1/admin/user/delete', {
    method: 'POST',
    data: params,
  });
}
